package com.caijb.redisdemo.monitor;

import io.micrometer.core.annotation.Counted;
import io.micrometer.core.annotation.Timed;
import io.micrometer.core.aop.MeterTag;
import org.springframework.stereotype.Component;

/**
 * @author caijb
 * @version 1.0
 * @data 2025/11/7 02:39
 */

@Component
public class GameMonitor {

    @Counted("game.success.count")
    public void count(@MeterTag(key = "user.name") String userName, @MeterTag(key = "game.name") String gameName, @MeterTag(key = "game.type") String gameType) {}

    @Timed
    public void time(@MeterTag String userName, @MeterTag String gameName, @MeterTag String gameType){}
}
